package com.shop.feign;

import com.shop.entity.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("message")
public interface MessageFeign {

    @PostMapping("merchantSend")
    void merchantSend(@RequestBody Message message);

    @PostMapping("orderMessage")
    public void orderMessage(@RequestBody Message message);
}
